/******************************************************
 * Cours		: LOG730
 * Session		: �t� 2011
 * Groupe		: 01
 * Projet		: Laboratoire #3
 * �tudiants 	: 	Gilbert Deir
 *             		Jean-S�bastien Beaulieu
 * Code(s) perm.:	DEIG03098507
 *                	BEAJ24068716
 ******************************************************/

package controller.msg;

import java.util.UUID;

import controller.AbstractNode;


import messages.Message;

public class AbstractMessage implements Message {

	/**
	 * 
	 */
	private static final long serialVersionUID = -8433423441163304776L;
	private final UUID idSource;
	private final String nodeName;

	public AbstractMessage(AbstractNode noeud) {
		this.nodeName = noeud.getName();
		this.idSource = noeud.getId();
	}

	public UUID getIdSource() {
		return idSource;
	}

	public String getNomNoeud() {
		return nodeName;
	}
}
